﻿<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" CodeFile="LoaiCD.aspx.cs" Inherits="Admin_LoaiCD" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table cellpadding="0" cellspacing="0" class="style2">
        <tr>
            <td colspan="2" style="color: #0000CC">
                <b>LOẠI CD</b></td>
        </tr>
        <tr>
            <td align="left" style="width: 69px">
                &nbsp;</td>
            <td align="left">
                <asp:ValidationSummary ID="ValidationSummary1" runat="server" />
            </td>
        </tr>
        <tr>
            <td align="left" style="width: 69px">
                Tên Loại:</td>
            <td align="left">
                <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="left" style="width: 69px">
                Giá Thuê:</td>
            <td align="left">
                Từ:<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
&nbsp;<asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="TextBox3" 
                    ControlToValidate="TextBox2" Display="Dynamic" 
                    ErrorMessage="Giá từ nhỏ hơn giá đến">*</asp:CompareValidator>
                <asp:CompareValidator ID="CompareValidator3" runat="server" 
                    ControlToValidate="TextBox2" ErrorMessage="Không nhập giá âm" 
                    Operator="GreaterThan" ValueToCompare="1">*</asp:CompareValidator>
                Đến:<asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
                <asp:CompareValidator ID="CompareValidator2" runat="server" 
                    ControlToCompare="TextBox2" ControlToValidate="TextBox3" 
                    ErrorMessage="Giá từ nhỏ hơn giá đến">*</asp:CompareValidator>
                <asp:CompareValidator ID="CompareValidator4" runat="server" 
                    ControlToValidate="TextBox3" ErrorMessage="Không nhập giá âm" 
                    Operator="GreaterThan" ValueToCompare="1">*</asp:CompareValidator>
            </td>
        </tr>
        <tr>
            <td style="width: 69px">
                &nbsp;</td>
            <td style="font-style: italic; font-weight: 700; color: #FF3300">
                <asp:Button ID="Button1" runat="server" Text="Tìm" Width="66px" 
                    onclick="Button1_Click" />
                <br />
                <asp:Label ID="Label1" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:GridView ID="GridView1" runat="server" 
                    AutoGenerateColumns="False" BackColor="White" BorderColor="#3366CC" 
                    BorderStyle="None" BorderWidth="1px" CellPadding="4" 
                   
                    onrowcancelingedit="GridView1_RowCancelingEdit" 
                   
                     
                    onrowupdating="GridView1_RowUpdating" Width="100%" 
                    onrowediting="GridView1_RowEditing" 
                    onpageindexchanging="GridView1_PageIndexChanging" 
                    onrowdeleting="GridView1_RowDeleting" AllowPaging="True" PageSize="5">
                    <RowStyle BackColor="White" ForeColor="#003399" />
                    <Columns>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <asp:CheckBox ID="cb" runat="server" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="MaLoai" HeaderText="Mã Loại" ReadOnly="True" />
                        <asp:BoundField DataField="TenLoai" HeaderText="Tên Loại" />
                        <asp:BoundField DataField="GiaThue" HeaderText="Giá Thuê" />
                        <asp:BoundField DataField="TienPhat" HeaderText="Tiền Phạt" />
                        <asp:CommandField HeaderText="Sửa" ShowEditButton="True" />
                        <asp:CommandField HeaderText="Xóa" ShowDeleteButton="True" />
                    </Columns>
                    <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
                    <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
                    <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
                    <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" />
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Button ID="Button3" runat="server" Text="Delete" Width="66px" 
                    onclick="Button3_Click" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Button ID="Button4" runat="server" onclick="Button4_Click" Text="Add" 
                    Width="66px" />
                &nbsp;&nbsp;&nbsp;&nbsp;
                <br />
&nbsp;
                </td>
        </tr>
    </table>
</asp:Content>

